package com.module.home.ui.home

import com.chad.library.adapter.base.BaseProviderMultiAdapter
import com.common.app.data.bean.home.HomeMainCardModel
import com.module.home.ui.home.provider.CloudReminderActivityProvider
import com.module.home.ui.home.provider.CloudReminderSleepProvider
import com.module.home.ui.home.provider.CommonEmptyProvider
import com.module.home.ui.home.provider.RecommendImgTypeProvider
import com.module.home.ui.home.provider.SceneModeSelectProvider

/**
 *
 * 作者：sosou
 *
 * 版本：1.0
 *
 * 创建日期：2025/6/30
 *
 * 描述：
 *
 * 修订历史：
 *
 */
class HomeMainCardAdapter : BaseProviderMultiAdapter<HomeMainCardModel>() {

    init {
        addItemProvider(CommonEmptyProvider())
        addItemProvider(RecommendImgTypeProvider())
        addItemProvider(SceneModeSelectProvider())
        addItemProvider(CloudReminderSleepProvider())
        addItemProvider(CloudReminderActivityProvider())
    }

    override fun getItemType(data: List<HomeMainCardModel>, position: Int): Int {
        return data[position].getItemType()
    }

}